package com.kfm.boot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * springboot 工程的入口类
 * @SpringBootApplication 来标注一个主程序类，说明这是一个springboot应用
 */
@SpringBootApplication
@ServletComponentScan // 扫描 Servlet 组件
@EnableAspectJAutoProxy // 开启 AOP
public class MySpringbootApplication {

    public static void main(String[] args) {
        // ApplicationContext Spring容器
        ApplicationContext applicationContext = SpringApplication.run(MySpringbootApplication.class, args);

        // 获取 bean
//        FileService bean = applicationContext.getBean(FileService.class);
//        System.out.println(bean);
    }
}
